package com.xgd.phylw.bean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class Member {
    @NotNull(message = "用户名不能为空！")
    private String memberName;
    @NotNull(message = "密码不能为空！")
    private String memberPass;

    private String memberHead;
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",message = "请正确填写手机号哦~")
    @NotNull(message = "手机号不能为空！")
    private String memberPhone;

    private Integer memberTemp;

    private Double memberDiscount;

    private Integer memberMunber;

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberPass() {
        return memberPass;
    }

    public void setMemberPass(String memberPass) {
        this.memberPass = memberPass;
    }

    public String getMemberHead() {
        return memberHead;
    }

    public void setMemberHead(String memberHead) {
        this.memberHead = memberHead;
    }

    public String getMemberPhone() {
        return memberPhone;
    }

    public void setMemberPhone(String memberPhone) {
        this.memberPhone = memberPhone;
    }

    public Integer getMemberTemp() {
        return memberTemp;
    }

    public void setMemberTemp(Integer memberTemp) {
        this.memberTemp = memberTemp;
    }

    public Double getMemberDiscount() {
        return memberDiscount;
    }

    public void setMemberDiscount(Double memberDiscount) {
        this.memberDiscount = memberDiscount;
    }

    public Integer getMemberMunber() {
        return memberMunber;
    }

    public void setMemberMunber(Integer memberMunber) {
        this.memberMunber = memberMunber;
    }

    @Override
    public String toString() {
        return "Member{" +
                "memberName='" + memberName + '\'' +
                ", memberPass='" + memberPass + '\'' +
                ", memberHead='" + memberHead + '\'' +
                ", memberPhone='" + memberPhone + '\'' +
                ", memberTemp=" + memberTemp +
                ", memberDiscount=" + memberDiscount +
                ", memberMunber=" + memberMunber +
                '}';
    }
}